package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @BelongsProject: dfxy-shequ
 * @Author: yangweimin
 * @CreateTime: 2024-06-19  14:43
 * @Description: TODO
 */
@Data
@Table("shequ.sqfw_work_summary")
@Comment("个人工作总计")
@ApiModel(description = "个人工作总计")
public class Sqfw_WorkSummary {
    @Column
    @Name
    @Comment("id")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("user_id")
    @Comment("用户id")
    @ApiModelProperty(description = "用户id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String userId;

    @Column("index")
    @Comment("顺序")
    @ApiModelProperty(description = "顺序")
    @ColDefine(type = ColType.INT)
    private Integer index;

    @Column("user_name")
    @Comment("user_name")
    @ApiModelProperty(description = "user_name")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String userName;

    @Column("type")
    @Comment("类型")
    @ApiModelProperty(description = "类型")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String type;

    @Column("text")
    @Comment("工作内容")
    @ApiModelProperty(description = "工作内容")
    @ColDefine(type = ColType.TEXT)
    private String text;

    @Column("url")
    @Comment("word链接")
    @ApiModelProperty(description = "word链接")
    @ColDefine(type = ColType.VARCHAR, width = 512)
    private String url;


    @Column("fill_date")
    @Comment("填表日期(只取年月日)")
    @ApiModelProperty(description = "填表日期")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private Date fillDate;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date createDate;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date updateDate;
}
